package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IScanFaceFragmentContract;
import com.clouddot.baipai.model.ScanFaceFragmentModel;
import com.clouddot.baipai.presenter.ScanFaceFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class ScanFaceFragmentModule {

    private IScanFaceFragmentContract.IView mView;

    public ScanFaceFragmentModule(IScanFaceFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public IScanFaceFragmentContract.IPresenter providerPresenter() {
        return new ScanFaceFragmentPresenter(mView, new ScanFaceFragmentModel(mView.getContext()));
    }
}
